﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using System.ServiceModel;
using Restful.Entities;
using System.ServiceModel.Description;
using System.ServiceModel.Web;
using System.ServiceModel.Activation;
namespace Restful.DataAccess
{
    [ServiceContract(Name = "ICitasAdmin")]
    public interface ICitasAdmin
    {
        [OperationContract]
        [WebInvoke(Method = "GET", ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Wrapped, UriTemplate = "citas/{CODCIT}")]
        citaBE datosCita(string CODCIT);

        [OperationContract]
        [WebInvoke(Method = "POST", BodyStyle = WebMessageBodyStyle.WrappedRequest, UriTemplate = "restaurar/{CODCIT}")]
        void restaurarCita(string CODCIT);

        [OperationContract]
        [WebInvoke(Method = "GET", BodyStyle = WebMessageBodyStyle.WrappedRequest, ResponseFormat = WebMessageFormat.Xml, UriTemplate = "delivery/{CODCIT}")]
        void enviarDelivery(string CODCIT);
    }
}
